package com.itheima.apidemo;

import com.itheima.domain.Student;

import java.util.Objects;

public class Demo05 {
    public static void main(String[] args) {
        Student student = null;
       // System.out.println(student.toString());
        System.out.println(Objects.toString(student));
        Student student1 = null;
        Student student2 = null;
        //System.out.println(student1.equals(student2));
        System.out.println(Objects.equals(student1,student2));
        System.out.println(student==null);
        System.out.println(student!=null);


    }
}
